package com.hefei.customer.info.mapper;

import java.util.List;

import com.hefei.api.customer.vo.easyui.PageHelper;
import com.hefei.customer.info.po.Contact;
import com.hefei.customer.info.po.Customer;

public interface CustomerMapper {
	
	public void saveCustomer(Customer customer);
	
	public void updateCustomer(Customer customer);
	
	public void deleteCustomer(int id);
	
	public Customer getCustomerById(int id);
	
	public Customer getCustoemrByName(String name);
	
	/**
	 * 获取该客户的所有联系人
	 * @return
	 */
	public List<Contact> getContactById(int customerId);
	/**
	 * 获取总数
	 * @param user
	 * @return
	 */
	public Long getDatagridTotal(Customer customer);
	
}
